home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-MIPS / VGA.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  525b  |  36 lines

  1. /*
  2.  *    Access to VGA videoram
  3.  *
  4.  *    (c) 1998 Martin Mares <mj@ucw.cz>
  5.  */
  6.  
  7. #ifndef _LINUX_ASM_VGA_H_
  8. #define _LINUX_ASM_VGA_H_
  9.  
  10. #include <asm/io.h>
  11.  
  12. #define VT_BUF_HAVE_RW
  13.  
  14. extern inline void scr_writew(u16 val, u16 *addr)
  15. {
  16.     if ((long) addr < 0)
  17.         *addr = val;
  18.     else
  19.         writew(val, (unsigned long) addr);
  20. }
  21.  
  22. extern inline u16 scr_readw(const u16 *addr)
  23. {
  24.     if ((long) addr < 0)
  25.         return *addr;
  26.     else
  27.         return readw((unsigned long) addr);
  28. }
  29.  
  30. #define vga_readb readb
  31. #define vga_writeb writeb
  32.  
  33. #define VGA_MAP_MEM(x) (x)
  34.  
  35. #endif
  36.